
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">是否离职:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_lz]', [1=>'是', 0=>'否'],0)}
            <button type="button" class="is_most is_see" style="display: none">存在代班情况（请先操作退班）</button>
        </div>
    </div>
    <div class="form-group is_lz" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">离职时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control datetimepicker"
                   data-date-format="YYYY-MM-DD"
                   data-use-current="true"
                   type="text"
                   data-rule=""
                   name="row[leave_time]"
                   placeholder="请选择时间" value="">
        </div>
    </div>
    <div class="form-group is_lz" style="display: none">
        <label for="c-content" class="control-label col-xs-12 col-sm-2">离职原因:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control" name="row[leave_remark]" type="text" value=""></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed ">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
